package com.springboot.frame.oauth.server.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author liheng
 * @since 2020-08-28
 */
@TableName("sys_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名(简称)
     */
    @TableField("short_name")
    private String shortName;

    /**
     * 登录账号
     */
    @TableField("account")
    private String account;

    /**
     * 登录密码
     */
    @TableField("password")
    private String password;

    @TableField("sex")
    private String sex;

    /**
     * 手机号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 删除  未删除
     */
    @TableField("enable")
    @TableLogic
    private Integer enable;

    @TableField("createtime")
    private LocalDateTime createtime;

    @TableField("lasttime")
    private LocalDateTime lasttime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getLasttime() {
        return lasttime;
    }

    public void setLasttime(LocalDateTime lasttime) {
        this.lasttime = lasttime;
    }

    @Override
    public String toString() {
        return "SysUser{" +
        "id=" + id +
        ", shortName=" + shortName +
        ", account=" + account +
        ", password=" + password +
        ", sex=" + sex +
        ", phone=" + phone +
        ", enable=" + enable +
        ", createtime=" + createtime +
        ", lasttime=" + lasttime +
        "}";
    }
}
